package com.gxy.learn.optimisticlock.enums;

/**
 * Description(任务状态美剧)
 * author: Gao xueyong
 * Create at: 2022/3/2 下午10:35
 */
public enum TaskStateEnum {

    RUNNING(1, "运行中"),
    DONE(0, "已完成");
    private Integer code;
    private String desc;

    TaskStateEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public Integer getCode() {
        return code;
    }


}
